import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    component: () => import("@/views/home.vue"),
    redirect: "/detectionApk",
    children: [
      {
        path: "/analysisApk",
        component: () => import("@/components/analysisApk.vue"),
      },
      {
        path: "/title",
        component: () => import("@/components/title.vue"),
      },
      {
        path: "/imgCropping",
        component: () => import("@/components/imgCropping.vue"),
      },
      {
        path: "/detectionApk",
        component: () => import("@/components/detectionApk.vue"),
      },
    ],
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
